package cn.ligoo.dtu.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import ssm.core.domain.BaseDomain;

/**
 * @author Jin,QingHua
 * @version 2012-07-24 12:18:51
 */
public class BmuSlaveInfo extends BaseDomain<BmuSlaveInfo> implements Serializable {

	private static final long serialVersionUID = -1L;

	/**
	 * 
	 */
	private Integer id;

	/**
	 * 对应DTU_INFO表的ID
	 */
	private Integer dtu_info_id;

	/**
	 * MODEM_ID
	 */
	private Integer modem_id;

	/**
	 * 从机ID
	 */
	private Byte sid;

	/**
	 * 此版本为V1.01 0x01
	 */
	private Byte data_version;

	/**
	 * 模块监控电池数目(N)
	 */
	private Byte battery_count;

	/**
	 * 模块监控温感数目(M)
	 */
	private Byte temp_sensor_count;

	/**
	 * 模块监控均衡电源个数(K)
	 */
	private Byte balanced_series_count;

	/**
	 * BIT0:0加热未开启，1加热开启；BIT1:0风扇未开启，1风扇开启；
	 */
	private Byte hot_manage_state;

	/**
	 * 数据产生的时间
	 */
	private Date data_create_time;

	private List<BmuSlaveBatteryState> stateList;

	private List<BmuSlaveBoxTemp> tempList;

	private List<BmuSlaveBalanceCurrent> currentList;

	public BmuSlaveInfo() {

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDtu_info_id() {
		return dtu_info_id;
	}

	public void setDtu_info_id(Integer dtu_info_id) {
		this.dtu_info_id = dtu_info_id;
	}

	public Integer getModem_id() {
		return modem_id;
	}

	public void setModem_id(Integer modem_id) {
		this.modem_id = modem_id;
	}

	public Byte getSid() {
		return sid;
	}

	public void setSid(Byte sid) {
		this.sid = sid;
	}

	public Byte getData_version() {
		return data_version;
	}

	public void setData_version(Byte data_version) {
		this.data_version = data_version;
	}

	public Byte getBattery_count() {
		return battery_count;
	}

	public void setBattery_count(Byte battery_count) {
		this.battery_count = battery_count;
	}

	public Byte getTemp_sensor_count() {
		return temp_sensor_count;
	}

	public void setTemp_sensor_count(Byte temp_sensor_count) {
		this.temp_sensor_count = temp_sensor_count;
	}

	public Byte getBalanced_series_count() {
		return balanced_series_count;
	}

	public void setBalanced_series_count(Byte balanced_series_count) {
		this.balanced_series_count = balanced_series_count;
	}

	public Byte getHot_manage_state() {
		return hot_manage_state;
	}

	public void setHot_manage_state(Byte hot_manage_state) {
		this.hot_manage_state = hot_manage_state;
	}

	public Date getData_create_time() {
		return data_create_time;
	}

	public void setData_create_time(Date data_create_time) {
		this.data_create_time = data_create_time;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public List<BmuSlaveBatteryState> getStateList() {
		return stateList;
	}

	public void setStateList(List<BmuSlaveBatteryState> stateList) {
		this.stateList = stateList;
	}

	public List<BmuSlaveBoxTemp> getTempList() {
		return tempList;
	}

	public void setTempList(List<BmuSlaveBoxTemp> tempList) {
		this.tempList = tempList;
	}

	public List<BmuSlaveBalanceCurrent> getCurrentList() {
		return currentList;
	}

	public void setCurrentList(List<BmuSlaveBalanceCurrent> currentList) {
		this.currentList = currentList;
	}
}